﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StructureMap;
using StructureMap.Pipeline;
using StructureMap.Configuration.DSL;
using StructureMap.Attributes;
using Slam.StructureMap;
using Slam.Events;
using Slam.Activation;

namespace SlamCms.SharePoint.SlamProfiles.ContentItem
{
	public class ContentTypeTypeProfile : ITypeProfile
	{
		#region ISLAMTypeProfile Members

		public void CreateProfile(Registry registry, string name)
		{
			registry.Profile(name, p => p.For<IItemCreator>().Use<ContentItemContentTypeItemCreator>());
			registry.Profile(name, p => p.For<IItemDeleter>().Use<ContentItemContentTypeItemDeleter>());
			registry.Profile(name, p => p.For<IItemUpdater>().Use<ContentItemContentTypeItemUpdater>());
			registry.Profile(name, p => p.For<IDataSynchronizeTypeProcessor>().Use<ContentItemDataSynchronizeTypeProcessor>());

			//registry.CreateProfile(name).
			//    For<IItemCreator>().UseConcreteType<ContentItemContentTypeItemCreator>().
			//    For<IItemDeleter>().UseConcreteType<ContentItemContentTypeItemDeleter>().
			//    For<IItemUpdater>().UseConcreteType<ContentItemContentTypeItemUpdater>().
			//    For<IDataSynchronizeTypeProcessor>().UseConcreteType<ContentItemDataSynchronizeTypeProcessor>();
		}

		#endregion

	}
}
